From: Andrea Azzarone Date: Mon, 17 Sep 2018 16:00:04 +0000 (+0200) Subject: inputMethod: Add a null-check for text in vfunc_set_surrounding. X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2^2~35 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0cf2d396b0d584f59402a6a0c42376639bd314ef;p=gnome-shell.git inputMethod: Add a null-check for text in vfunc_set_surrounding. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/579 --- diff --git a/js/misc/inputMethod.js b/js/misc/inputMethod.js index 320a6cc33..ec84f7277 100644 --- a/js/misc/inputMethod.js +++ b/js/misc/inputMethod.js @@ -176,7 +176,7 @@ var InputMethod = new Lang.Class({ }, vfunc_set_surrounding(text, cursor, anchor) { - if (this._context) + if (this._context && text) this._context.set_surrounding_text(text, cursor, anchor); },